const userStore = {
    state: {
        num: 20
    },
    actions: {
        addRank(newState:{num: number}) {
            newState.num++
        },
        rankAdd(newState:{num: number}, action: {type: string, value: number}){
            newState.num += action.value
        }
    },
    actionNames: {}
}
const actionNames = {}
for (const key in userStore.actions) {
    actionNames[key] = key
}
userStore.actionNames = actionNames
export default userStore